<?php $__env->startSection('title', '首页'); ?>

<?php $__env->startSection('css'); ?>
    <link href="<?php echo e(loadEdition('/admin/css/pxgridsicons.min.css')); ?>" rel="stylesheet"/>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
    <?php
    use App\Models\Enum\ActionDef;
    ?>
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox-title">
                <h5>
                    <a href="javascript:;" data-toggle="tooltip" data-placement="bottom"
                       title="显示所有游戏所有渠道的实时统计信息">用户转化统计</a></h5>
            </div>
            <div class="ibox-content">

                <form class="form-horizontal" action="<?php echo e(route('hotspot.index')); ?>" method="get"
                      enctype="multipart/form-data">
                    <table class="table-striped table-bordered table-hover table-condensed">
                        <tr class="b-group">
                            <td class="b-child" colspan="2">
                                <table class="table-striped table-bordered table-hover table-condensed">
                                    <tr>
                                        <td>
                                            <?php echo $__env->make('widget.between_datetime',['showEndTime'=>true], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                                        </td>
                                        <td>
                                            <?php echo $__env->make('widget.query_and_refresh', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                                        </td>
                                        <td>
                                            <?php echo $__env->make('widget.dataType', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>

                </form>

                <table class="table table-bordered table-striped tblData" data-toggle="table"
                       data-pagination="true">
                    <thead>
                    <tr>
                        <th>
                            渠道
                        </th>
                        <th>
                            <?php echo ActionDef::get(ActionDef::ENTER_URL);?>
                        </th>
                        <th>
                            <?php echo ActionDef::get(ActionDef::SDK_LOGIN);?>
                        </th>
                        <th>
                            <?php echo ActionDef::get(ActionDef::ENTER_LOGIN_UI);?>
                        </th>
                        <th>
                            <?php echo ActionDef::get(ActionDef::CLICK_LOGIN);?>
                        </th>
                        <th>
                            <?php echo ActionDef::get(ActionDef::ENTER_CREATE_UI);?>
                        </th>
                        <th>
                            <?php echo ActionDef::get(ActionDef::HAS_CREATE);?>
                        </th>
                        <th>
                            <?php echo ActionDef::get(ActionDef::ENTER_GAME);?>
                        </th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php
                    $html = '';
                    foreach ($hotspot as $channelId => $value) {
                        $channel_name = get($channels[$channelId], $channelId);
                        $enter_url = get($value[ActionDef::ENTER_URL]);
                        $sdk_login = get($value[ActionDef::SDK_LOGIN]);
                        $enter_login_ui = get($value[ActionDef::ENTER_LOGIN_UI]);
                        $click_login = get($value[ActionDef::CLICK_LOGIN]);
                        $enter_create_ui = get($value[ActionDef::ENTER_CREATE_UI]);
                        $has_create = get($value[ActionDef::HAS_CREATE]);
                        $enter_game = get($value[ActionDef::ENTER_GAME]);

                        $html .= "<tr>
                        <td>{$channel_name}</td>
                        <td>{$enter_url}</td>
                        <td>{$sdk_login}</td>
                        <td>{$enter_login_ui}</td>
                        <td>{$click_login}</td>
                        <td>{$enter_create_ui}</td>
                        <td>{$has_create}</td>
                        <td>{$enter_game}</td>
                        </tr>";
                    }
                    echo $html;
                    ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    </div>
    <link href="<?php echo e(loadEdition('/admin/css/plugins/datapicker/bootstrap-datepicker.css')); ?>" rel="stylesheet">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>
    <script src="<?php echo e(loadEdition('/admin/js/plugins/datapicker/bootstrap-datepicker.js')); ?>"></script>
    <script src="<?php echo e(loadEdition('/admin/js/plugins/datapicker/bootstrap-datepicker.zh-CN.js')); ?>"></script>
    <script src="<?php echo e(loadEdition('/admin/js/plugins/datapicker/bootstrap-datepicker.zh-CN.js')); ?>"></script>
    <!--bootstrap-table start-->
    <script src="<?php echo e(loadEdition('/admin/js/plugins/bootstrap-table/bootstrap-table.min.js')); ?>"></script>
    <script src="<?php echo e(loadEdition('/admin/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.js')); ?>"></script>
    <!--bootstrap-table end-->
    <script src="<?php echo e(loadEdition('/js/global.js')); ?>"></script>
    <script>

    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>